package com.h.common.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.pandawork.core.entity.AbstractEntity;

/**
 *商品实体
 */
@Entity
@Table(name = "t_commodity")
public class Commodity extends AbstractEntity {
	private static final long serialVersionUID = -3128780195088297314L;

	@Id
	@Column(name = "id" , unique = true , nullable = false)
	private Integer id;
	
	@Column(name = "num")
	private Integer num;//商品编号，条形码
	
	@Column(name = "name")
	private String name;//商品名称
	
	@Column(name = "price")
	private Float price;//价钱

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getNum() {
		return num;
	}

	public void setNum(Integer num) {
		this.num = num;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Float getPrice() {
		return price;
	}

	public void setPrice(Float price) {
		this.price = price;
	}

}
